<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="lib/bootstrap-3.3.7-dist/css/bootstrap.css"/>
</head>
<body>
	<%-- ${list} --%>
	<form action="/JavaWeb1905/user?method=insert" method="post">
		用户名：<input type="text" name="name"/><br/>
		密码：<input type="text" name="password"/><br/>
		年龄：<input type="text" name="age"/><br/>
		部门：<select name="departmentId">
				<option>--请选择部门--</option>
				<c:forEach items="${list}" var="dept">
					<option value="${dept.id}">${dept.name}</option>
				</c:forEach>
			</select><br/>
		<input type="submit" value="添加"/>
	</form>
	<hr/>
	<form action="/JavaWeb1905/user?method=insert" method="post">
	  <div class="form-group">
	    <label>用户名</label>
	    <input type="text" name="name" class="form-control" placeholder="用户名">
	  </div>
	  <div class="form-group">
	    <label>密码</label>
	    <input type="text" name="password" class="form-control" >
	  </div>
	  <div class="form-group">
	    <label>年龄</label>
	    <input type="text" name="age" class="form-control" placeholder="年龄">
	  </div>
	  <div class="form-group">
	    <label>部门</label>
	    <select name="departmentId">
				<option>--请选择部门--</option>
				<c:forEach items="${list}" var="dept">
					<option value="${dept.id}">${dept.name}</option>
				</c:forEach>
		</select>
	  </div>
	  <input type="submit" value="添加"/>
	</form>
	
</body>
</html>